package com.practice.pojo.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author Jasmine
 * @since 2023-05-14
 */
@Data
@Accessors(chain = true)
@TableName("sys_menu")
@ApiModel(value = "Menu对象", description = "菜单表")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("父级编号")
    private Integer pid;

    @ApiModelProperty("路由名称")
    private String path;

    @ApiModelProperty("组件路径")
    private String component;

    @ApiModelProperty("菜单名称")
    private String title;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("是否在菜单中显示，0不显示，1显示")
    private Integer isShow;

    @ApiModelProperty("是否缓存，0否，1是")
    private Integer isCache;

    @ApiModelProperty("是否外联，0否，1是")
    private Integer isLink;

    @ApiModelProperty("重定向地址")
    private String redirect;

    @ApiModelProperty("创建时间")
    @JsonProperty("crate_date")
    private LocalDateTime createDate;

    @ApiModelProperty("更新时间")
    @JsonProperty("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty("删除标记")
    @TableLogic(value = "0",delval = "1")
    private Integer delFlag;

    @ApiModelProperty("类型，1是菜单，2按钮")
    private Integer type;

    @ApiModelProperty("排序")
    private BigDecimal sort;

    @ApiModelProperty("权限标识")
    private String mark;

    @ApiModelProperty("是否为默认数据，null表示不是，1表示是")
    private String defaultData;


}
